package services;


public class WSRecepcionODProxy implements services.WSRecepcionOD {
  private String _endpoint = null;
  private services.WSRecepcionOD wSRecepcionOD = null;
  
  public WSRecepcionODProxy() {
    _initWSRecepcionODProxy();
  }
  
  public WSRecepcionODProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSRecepcionODProxy();
  }
  
  private void _initWSRecepcionODProxy() {
    try {
      wSRecepcionOD = (new services.WSRecepcionODServiceLocator()).getWSRecepcionODPort();
      if (wSRecepcionOD != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSRecepcionOD)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSRecepcionOD)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSRecepcionOD != null)
      ((javax.xml.rpc.Stub)wSRecepcionOD)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public services.WSRecepcionOD getWSRecepcionOD() {
    if (wSRecepcionOD == null)
      _initWSRecepcionODProxy();
    return wSRecepcionOD;
  }
  
  public java.lang.String procesarOrdenDespacho(java.lang.String arg0) throws java.rmi.RemoteException{
    if (wSRecepcionOD == null)
      _initWSRecepcionODProxy();
    return wSRecepcionOD.procesarOrdenDespacho(arg0);
  }


  
  
}